angular.module('app.service.auth', [
  'ngResource'
])

//登陆服务
  .service('LoginService', ['$resource', function ($resource) {
    this.login = function (manager, success, error) {
      var resource = $resource(authurl + "user/login");
      return resource.save(manager, success, error);
    };
    this.getUserid = function () {
      var userid='';
      if(getCookie("manager_cookie")){
        userid = getCookie("manager_cookie").userid;
      }
      return userid;
    }
  }])
;
